body {
  margin: 0;
}
#canvas {
  background-color: #fafafa;
}
.color {
  position: fixed;
  top: 50px;
  left: 5px;
  padding: 0;
  margin: 0;
  list-style: none;
  & > li {
    width: 30px;
    height: 30px;
    margin-top: 5px;
    border-radius: 50%;
    background-color: #333;
    &:nth-child(2) {
      background-color: #ff4757;
    }
    &:nth-child(3) {
      background-color: #ff6348;
    }
    &:nth-child(4) {
      background-color: #5352ed;
    }
  }
}

.tool {
  position: fixed;
  top: 5px;
  left: 5px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  & > svg {
    box-sizing: border-box;
    margin-right: 15px;
    width: 40px;
    height: 40px;
    path {
      fill: #aaa;
      transition: all 1s;
    }
  }
}

.line {
  position: fixed;
  margin-left: 36px;
  top: 46px;
  width: 200px;
}
.line-item {
  box-sizing: border-box;
  padding: 0 10px;
  height: 50px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
}
.line-item > div {
  flex: 1;
  background-color: #000;
  border-radius: 50%;
}
.light {
  height: 4px;
}
.normal {
  height: 8px;
}
.blod {
  height: 12px;
}
@media (max-width: 400px) {
  .line {
    position: fixed;
    margin-left: 0;
    right: 0;
    top: 50px;
    width: 70px;
  }
  .line-item {
    box-sizing: border-box;
    padding: 0 10px;
    height: 50px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
  }
}

.active {
  background-color: #23aaf2 !important;
}
